package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Goods implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * id       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 商品名       db_column: name 
     */	
	private java.lang.String name;
    /**
     * 商品编码       db_column: code 
     */	
	private java.lang.String code;
    /**
     * 分类名       db_column: classify_name 
     */	
	private java.lang.String classifyName;
    /**
     * 分类编码       db_column: classify_code 
     */	
	private java.lang.String classifyCode;
    /**
     * 商品详情       db_column: goods_desc 
     */	
	private java.lang.String goodsDesc;
    /**
     * 店铺id       db_column: shop_id 
     */	
	private java.lang.String shopId;
    /**
     * 店铺名       db_column: shop_name 
     */	
	private java.lang.String shopName;
    /**
     * 有效标记(默认为1有效 0无效）       db_column: active_flag 
     */	
	private java.lang.String activeFlag;
    /**
     * 创建人ID       db_column: create_by 
     */	
	private java.lang.String createBy;
    /**
     * 创建人姓名       db_column: create_by_name 
     */	
	private java.lang.String createByName;
    /**
     * 创建时间       db_column: create_date 
     */	
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by 
     */	
	private java.lang.String modifiedBy;
    /**
     * 修改人姓名       db_column: modified_by_name 
     */	
	private java.lang.String modifiedByName;
    /**
     * 修改时间       db_column: modified_date 
     */	
	private java.util.Date modifiedDate;

	private String imgList;
	
	private String publishStatus;
	
	private Double guidePrice;
	
	private Double sellPrice;
	
	private String mainImg;
	
	private Integer sellCount;
	
	private String freightId;
	
	private String freightName;
	//columns END

	public Goods(){
	}

	public Goods(
		java.lang.String id
	){
		this.id = id;
	}

	public String getFreightId() {
		return freightId;
	}

	public void setFreightId(String freightId) {
		this.freightId = freightId;
	}

	public String getFreightName() {
		return freightName;
	}

	public void setFreightName(String freightName) {
		this.freightName = freightName;
	}

	public Integer getSellCount() {
		return sellCount;
	}

	public void setSellCount(Integer sellCount) {
		this.sellCount = sellCount;
	}

	public Double getGuidePrice() {
		return guidePrice;
	}

	public void setGuidePrice(Double guidePrice) {
		this.guidePrice = guidePrice;
	}

	public Double getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(Double sellPrice) {
		this.sellPrice = sellPrice;
	}

	public String getMainImg() {
		return mainImg;
	}

	public void setMainImg(String mainImg) {
		this.mainImg = mainImg;
	}

	public String getPublishStatus() {
		return publishStatus;
	}

	public void setPublishStatus(String publishStatus) {
		this.publishStatus = publishStatus;
	}

	public String getImgList() {
		return imgList;
	}

	public void setImgList(String imgList) {
		this.imgList = imgList;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	public void setCode(java.lang.String value) {
		this.code = value;
	}
	
	public java.lang.String getCode() {
		return this.code;
	}
	public void setClassifyName(java.lang.String value) {
		this.classifyName = value;
	}
	
	public java.lang.String getClassifyName() {
		return this.classifyName;
	}
	public void setClassifyCode(java.lang.String value) {
		this.classifyCode = value;
	}
	
	public java.lang.String getClassifyCode() {
		return this.classifyCode;
	}
	public void setGoodsDesc(java.lang.String value) {
		this.goodsDesc = value;
	}
	
	public java.lang.String getGoodsDesc() {
		return this.goodsDesc;
	}
	public void setShopId(java.lang.String value) {
		this.shopId = value;
	}
	
	public java.lang.String getShopId() {
		return this.shopId;
	}
	public void setShopName(java.lang.String value) {
		this.shopName = value;
	}
	
	public java.lang.String getShopName() {
		return this.shopName;
	}
	public void setActiveFlag(java.lang.String value) {
		this.activeFlag = value;
	}
	
	public java.lang.String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(java.lang.String value) {
		this.createByName = value;
	}
	
	public java.lang.String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(java.lang.String value) {
		this.modifiedBy = value;
	}
	
	public java.lang.String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(java.lang.String value) {
		this.modifiedByName = value;
	}
	
	public java.lang.String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Goods == false) return false;
		if(this == obj) return true;
		Goods other = (Goods)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

